package com.bhms.module.users.users.action;

import java.util.ArrayList;
import java.util.List;

import com.bhms.module.users.users.mapper.Users;
import com.bhms.module.users.users.service.UserService;
import com.sunshulin.common.action.GeneralAction;

/**
 * 系统用户管理action
 * 
 * @author 孙树林
 * 
 */
public class UserAction extends GeneralAction {

	private static final long serialVersionUID = -5863047103742395447L;

	private UserService userService;

	private Users users = new Users();

	private List<Users> userList = new ArrayList<Users>();

	/**
	 * 查询，显示系统用户列表
	 * 
	 * @return
	 */
	public String userList() {
		page(users);
		userList = userService.searchUser(users);
		return SUCCESS;
	}

	public Users getUsers() {
		return users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public List<Users> getUserList() {
		return userList;
	}

	public void setUserList(List<Users> userList) {
		this.userList = userList;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}
}
